<template>
  <vxe-modal v-model="dialogVisible" title="编辑" resize show-footer show-zoom :width="isMobile?'100%':'60%'" :fullscreen="isMobile">
    <el-form
      ref="form"
      :model="modelValue"
      :rules="rules"
      label-width="90px"
      label-position="right"
    >
          <el-form-item prop="province" label="省份" >
	      	  <el-input v-model="modelValue.province" clearable />
          </el-form-item>
          <el-form-item prop="city" label="城市" >
	      	  <el-input v-model="modelValue.city" clearable />
          </el-form-item>
          <el-form-item prop="address1" label="区县" >
	      	  <el-input v-model="modelValue.address1" clearable />
          </el-form-item>
          <el-form-item prop="address2" label="详细地址" >
	      	  <el-input v-model="modelValue.address2" clearable />
          </el-form-item>
          <el-form-item prop="zipCode" label="邮编" >
	      	  <el-input v-model="modelValue.zipCode" clearable />
          </el-form-item>
          <el-form-item prop="person" label="联系人" >
	      	  <el-input v-model="modelValue.person" clearable />
          </el-form-item>
          <el-form-item prop="mobile" label="手机号" >
	      	  <el-input v-model="modelValue.mobile" clearable />
          </el-form-item>
          <el-form-item prop="telephone" label="固定电话" >
	      	  <el-input v-model="modelValue.telephone" clearable />
          </el-form-item>
          <el-form-item prop="tableName" label="表名" >
	      	  <el-input v-model="modelValue.tableName" clearable />
          </el-form-item>
          <el-form-item prop="originId" label="业务表主键" >
	      	  <el-input v-model="modelValue.originId" clearable />
          </el-form-item>
      </el-form>
      <template #footer>
      <vxe-button status="primary" content="提交" :disabled="loading" @click="clickSubmitBtn" />
    </template>
    </vxe-modal>
</template>

<script>
import Api from '@/api/upms/address'
import { VxeModalMixin } from '@/mixins/vxe/VxeModalMixin'
export default {
  name: 'UpmsAddressUpdateDialog',
  mixins: [VxeModalMixin],
  data() {
    return {
      api: Api.update,
      modelValue: {
      id:undefined,
      province:undefined,
      city:undefined,
      address1:undefined,
      address2:undefined,
      zipCode:undefined,
      person:undefined,
      mobile:undefined,
      telephone:undefined,
      tableName:undefined,
      originId:undefined,
      },
      rules: {
        id: [
          { required: true }
        ],
      }
    }
  },
  computed: {

  },
  mounted() {
  },
  methods: {

  }
}
</script>

<style>

</style>
